package com.kangye.exam.service.serviceimpl;

import com.kangye.exam.bean.Student;
import com.kangye.exam.bean.TeacherPaper;
import com.kangye.exam.dao.TeacherPaperDao;
import com.kangye.exam.service.StudentExamRecordService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service(value = "strs")
public class studentExamRecordServiceImp implements StudentExamRecordService {
    @Resource
    private TeacherPaperDao tpd;
    @Override
    public List<TeacherPaper> testLoading(Student student) {
        List<TeacherPaper> papers = tpd.getPapers(student);
        return papers;
    }

    @Override
    public TeacherPaper getPaper(TeacherPaper paper) {
        TeacherPaper tPaper = tpd.getPaper(paper);
        return tPaper;
    }
}
